// 其他相关store// 主题相关store
import { defineStore } from 'pinia';
import logoImage from '@/assets/vue.svg'
export const useCommonStore = defineStore('common', {
    state: () => {
        return {
            logoImg:logoImage as string, // 主题信息
        }
    },
    actions: {
        // 设置主题状态
        setLogoImg(logoImg: string) {
            this.logoImg = logoImg;
        },
    },
    getters: {},
    // 配置持久化
    persist: {
        paths: ['logoImg'],// 指定需要持久化的状态
    }
}
);